{% if player_list %}
<h1>League Standings</h1>
<table border ="1">
  <tr>
    <td> Player Name </td>
    <td> Wins </td>
    <td> Losses </td>
    <td> Draws </td>
  </tr>
  {% for player in player_list %}
  <tr>
    <td> 
      {% if user_player == player %}
      <b> {{player.name}} </b>
      {% else %}
      {{player.name}}
      {% endif %}
    </td>
    <td> {{player.wins}} </td>
    <td> {{player.losses}} </td>
    <td> {{player.draws}} </td>
  </tr>
  
  {% endfor %}
</table>
{% else %}
<p> No players in league </p>
{% endif %}
  
{% if weeks %}
<h1>Weeks</h1>
<table border = "1">
  {% for week in weeks %}
  <tr>
    <td> 
<!-- Need to have a conditional here for the date being in the
     future or not -->
      {{week.date}}
      </a>
    </td>
    <td>
      <a href="../../nba_pool_v2/make_picks/{{week.id}}/{{user_player.id}}/">Make Picks</a>
    </td>
    <td>
      <a href="../../nba_pool_v2/review_picks/{{week.id}}/{{user_player.id}}/">View Picks</a>
    <td>
      <a href="../../nba_pool_v2/enter_results/{{week.id}}/">
	Enter Results
      </a>
    </td>
  </tr>
  {% endfor %}  
</table>
{% else %}
<p> No Weeks in league </p>
{% endif %}

